package com.puccampinas.finalproject.core.persistence.entity;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "message")
@XmlRootElement(name = "message")
@XmlAccessorType(XmlAccessType.FIELD)
public class Message implements Serializable {

	private static final long serialVersionUID = 9812387509872L;
	
	@XmlElement(name = "id")
	private long id;
	
	@XmlElement(name = "type")
	private Integer type;
	
	@XmlElement(name = "message")
	private String message;
	
	@XmlElement(name = "from")
	private String from;
	
	@XmlElement(name = "fromImage")
	private String fromImage;
	
	@XmlElement(name = "creationDate")
	private Date creationDate;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getFromImage() {
		return fromImage;
	}

	public void setFromImage(String fromImage) {
		this.fromImage = fromImage;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	
}
